package com.dsg.service.set.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dsg.entity.set.DsgSetCusBacklist;
import com.dsg.dao.set.DsgSetCusBacklistMapper;
import com.dsg.service.set.IDsgSetCusBacklistService;
import com.dsg.service.DsgServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 客戶/公司黑名單 服务实现类
 * </p>
 *
 * @author system
 * @since 2020-08-18
 */
@Service
public class DsgSetCusBacklistServiceImpl extends DsgServiceImpl<DsgSetCusBacklistMapper, DsgSetCusBacklist> implements IDsgSetCusBacklistService {

    @Autowired
    private DsgSetCusBacklistMapper dsgSetCusBacklistMapper;

    @Override
    public Page<DsgSetCusBacklist> selectByCusList(Page<DsgSetCusBacklist> page, DsgSetCusBacklist dsgSetCusBacklist) {
        return page.setRecords(dsgSetCusBacklistMapper.selectByCusList(page, dsgSetCusBacklist));
    }
}
